﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.NightFreightConfiguration
{
    /// <summary>
    /// 夜间运费配置请求模型
    /// </summary>
    public class NightFreightConfigurationRequestDto
    {
        /// <summary>
        /// 订单抽取比例(百分比)
        /// </summary>
        [Display(Name = "订单抽取比例(百分比)")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public int OrderExtractProportion { get; set; }

        /// <summary>
        /// 开始小时
        /// </summary>
        [Display(Name = "开始小时")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public int StartHour { get; set; }

        /// <summary>
        /// 开始分钟
        /// </summary>
        [Display(Name = "开始分钟")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public int StartMinute { get; set; }

        /// <summary>
        /// 结束小时
        /// </summary>
        [Display(Name = "结束小时")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public int EndHour { get; set; }

        /// <summary>
        /// 结束分钟
        /// </summary>
        [Display(Name = "结束分钟")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public int EndMinute { get; set; }
    }
}
